package com.zzp.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("student")
public class Student {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("student_id")
    private String studentId;

    private String name;

    private String gender;

    @TableField("date_of_birth")
    private Date dateOfBirth;

    private String email;

    @TableField("phone_number")
    private String phoneNumber;

    private String address;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
}